import { Base } from '../../../utils/base.js';
class Subscribe extends Base {
  constructor() {
    super();
  }

  //预订时间段
  getSetting(place, callback) {
      var param = {
        url: '/api/portal/order_food/order_setting',
        type: "get",
        data: {},
        sCallback: function (data) {
          callback && callback(data);
        }
      };
      this.request(param);
  }

  //认证信息
  getUserInfo(place, callback) {
    var param = {
      url: '/api/user/user/userInfo',
      type: "get",
      data: {},
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  //发起预订
  getBook(place, callback) {
    console.log(place)
    var param = {
      url: '/api/portal/order_food/add',
      type: "get",
      data: place,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  //信息
  getSign(place, callback) {
    var param = {
      url: '/api/user/user/getPunchTheClock',
      type: "get",
      data: place,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

};
export { Subscribe };  